package com.project.service.impl;

import com.project.service.IUserService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service("User")  //标识该类为业务组件类
//@Scope("prototype")  // 标识该类产生的对象为多实例模式
public class UserServiceImpl implements IUserService {
    @Override
    public void speak() {
        System.out.println("你说，你说你爱我");
    }
}
